import request from '@/utils/request'

// 查询过程检验列表
export function listProWorkReport(query) {
  return request({
    url: '/yyj/pro/proWorkReport/list',
    method: 'get',
    params: query
  })
}

// 查询过程检验详细
export function getProWorkReport(reportCode) {
  return request({
    url: '/yyj/pro/proWorkReport/' + reportCode,
    method: 'get'
  })
}

// 新增过程检验
export function addProWorkReport(data) {
  return request({
    url: '/yyj/pro/proWorkReport',
    method: 'post',
    data: data
  })
}

// 修改过程检验
export function updateProWorkReport(data) {
  return request({
    url: '/yyj/pro/proWorkReport',
    method: 'put',
    data: data
  })
}

export function calcSal(data) {
  return request({
    url: '/yyj/pro/proWorkReport/calcSal',
    method: 'put',
    data: data
  })
}

// 删除过程检验
export function delProWorkReport(reportCode) {
  return request({
    url: '/yyj/pro/proWorkReport/' + reportCode,
    method: 'delete'
  })
}
